package com.snail.cloud.model;

/**
 * @author MR.LHL
 * @date 2024/3/1
 */

public class BasePageInfo {

    private Integer pageSize = 10;
    private Integer pageNum = 1;

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize(int def) {
        return pageSize != null ? pageSize : def;
    }

    public int getPageNum(int def) {
        return pageNum != null ? pageNum : def;
    }
}